//
//  CoreDataUtils.h
//  iShop
//
//  Created by svp on 1/6/12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Shop.h"
#import "Category.h"
#import "Product.h"
#import "BaseProduct.h"
#import "iShopAppDelegate.h"
#import "Brand.h"
@interface CoreDataUtils : NSObject {

}
+(NSManagedObject*) getObjectEntity:(NSString*)entity fromCondition:(NSDictionary*)condition;
+(void) updateCategory:(NSArray*)parentCategoryObjs;
+(NSArray*) getRootCategoryFromShop:(Shop*)shop;
+(NSArray*) getProductsFromShop:(Shop*)shop;
+(NSUInteger) countProductOnShop:(Shop*)shop andCategory:(Category*)category;
+(NSArray*) getProductOnShop:(Shop*)shop andCategory:(Category*)category;
+(NSArray*) getSubCategoryFromShop:(Shop*)shop rootCategory:(Category*)category;
+(NSArray*) getMainCategory;
+(NSArray*) getSubCategory:(Category*)category;
+(NSArray*) getBrandList;
+(NSArray*) getBaseProductImages:(BaseProduct*)baseProduct;
+(NSArray*) getSearchShopList;
+(NSArray*) getSearchMainCategory;
+(NSArray*) getSearchSubCategory:(NSString*)parentID;
+(NSArray*) getSearchBrands;
+(NSArray*) getSearchPriceType;
+(BOOL) checkExistWishlistProduct:(BaseProduct*)baseProduct;
+(void) deleteAllWishlist;
+(void) addWishList:(NSString*)baseProductID;
@end
